package com.qijian.maindata.domain.excel;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 刀具台账对象 main_knife_ledger
 *
 * @author qijian
 * @date 2024-02-29
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_knife_ledger")
public class KnifeLedgerExcel extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "使用厂区id")
    private Long factoryAreaId;

    @Excel(name = "使用厂区")
    @ApiModelProperty(value = "使用厂区")
    private String factoryArea;

    @Excel(name = "库位")
    @ApiModelProperty(value = "库位")
    private String location;

    @Excel(name = "刀具编号")
    @ApiModelProperty(value = "刀具编号")
    private String number;

    @Excel(name = "刀具名称")
    @ApiModelProperty(value = "刀具名称")
    private String name;

    @Excel(name = "设备规格")
    @ApiModelProperty(value = "设备规格")
    private String spec;

    @Excel(name = "刀具品牌")
    @ApiModelProperty(value = "刀具品牌")
    private String brand;

    @Excel(name = "刀具数量")
    @ApiModelProperty(value = "刀具数量")
    private BigDecimal quantity;


    @Excel(name = "激光码")
    private String code;

    @Excel(name = "状态" , dictType = "equipment_ledger_status")
    private String status;

    @Excel(name = "刀具计量单位")
    @ApiModelProperty(value = "刀具计量单位")
    private String unit;

    @Excel(name = "使用部门")
    @ApiModelProperty(value = "使用部门")
    private String deptName;

    @Excel(name = "使用时间")
    @ApiModelProperty(value = "使用时间")
    private Date inboundDate;
    @Excel(name = "类型")
    @ApiModelProperty(value = "类型")
    private String type;


    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "使用时间")
    @ApiModelProperty(value = "使用时间")
    private String year;


}
